package com.ayf.payment.game.api.mapper;

import com.ayf.payment.game.api.dto.MerchantLevelRelationDTO;
import com.ayf.payment.game.api.dto.criteria.MerchantLevelRelationCriteria;
import com.ayf.payment.game.api.entity.MerchantLevelRelation;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MerchantLevelRelationMapper extends Mapper<MerchantLevelRelation> {

    MerchantLevelRelationDTO getDTOByMerchantId(@Param("merchantId") Integer merchantId);

    List<MerchantLevelRelationDTO> selectDTOBySupMerchantId(@Param("superMerchantId")Integer superMerchantId);

    List<MerchantLevelRelationDTO> selectPageByCriteria(MerchantLevelRelationCriteria criteria);
}